package com.service;

import com.model.ExplainDetail;
import com.pepository.dao.ExplainDetailRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExplainDetailService {
    @Autowired
    private ExplainDetailRepository explainDetailRepository;

    public ExplainDetail getById(Long detailId) {
        return explainDetailRepository.findById(detailId).get();
    }
}
